package com.feiyu.dao;

import com.feiyu.bean.SysUser;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.session.SqlSessionFactory;

import java.util.List;

/**
 * @author nanshouxiao@teacher.com.cn
 * @date 2017-11-03 15:40
 */
public interface CommonMapper<T> {

    @Select("${sql}")
    List<T> selectList(@Param("sql") String sql);

    @Select("${_parameter}")
    SysUser selectOne(String sql);

    @Select("${_parameter}")
    int insert(String sql);

    @Select("${_parameter}")
    int delete(String sql);
}
